package bean;

import java.util.Date;

public class Person {
    private String name;
    private boolean male;
    private Date birthday;
    private String address;

    public Person() {}

    public Person(String name, boolean male, Date birthday, String address) {
        this.name = name;
        this.male = male;
        this.birthday = birthday;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isMale() {
        return male;
    }

    public void setMale(boolean male) {
        this.male = male;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Person [name=" + name + ", male=" + male + ", birthday=" + birthday + ", address=" + address + "]";
    }
}
